package cz.jm.web.manhunter.client.common;

import com.smartgwt.client.widgets.form.validator.CustomValidator;

public class StaticValidator extends CustomValidator {
	private boolean isValid = false;
	
	public StaticValidator(boolean isValid) {
		this.setValid(isValid);
	}
	
	@Override
    protected boolean condition(Object value) {
        return isValid();
    }

	public boolean isValid() {
        return isValid;
    }

	public void setValid(boolean isValid) {
        this.isValid = isValid;
    }
	
} 
